package cn.initcap.designpattern.pattern.behavioral.visitor;

/**
 * @author initcap
 * @date Created in 2018/11/1 PM10:50.
 */
public abstract class BaseCourse {
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    /**
     * 是否接受他的访问
     *
     * @param visitor 访问者
     */
    public abstract void accept(IVisitor visitor);
}
